package simbolo;

import java.util.TreeSet;

public class Simbolo implements Comparable {
	
	protected Character _caracter;
	
	public Simbolo() {
		// Nada...
	}
	
	public Simbolo(Character c) {
		_caracter = c;
	}

	public Character getCaracter() {
		return _caracter;
	}
	
	public String toString() {
		return _caracter.toString();
	}

	public int compareTo(Object other) {
		return _caracter.compareTo(((Simbolo) other)._caracter);
	}
	
	public boolean equals(Object other) {
		return (this._caracter.equals(((Simbolo) other)._caracter));
	}
	
	
	public Simbolo copy() {
		return new Simbolo(_caracter);
	}
	
	private TreeSet<Simbolo> _uMas = new TreeSet<Simbolo>();
	private TreeSet<Simbolo> _pMas = new TreeSet<Simbolo>();
	
	public TreeSet<Simbolo> getUMas() {
		return _uMas;
	}

	public TreeSet<Simbolo> getPMas() {
		return _pMas;
	}
	
	public TreeSet<Simbolo> getPestrella() {
		return null;
	}
}
